import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex)

import config from "util/config.js"
import home from "./modules/home"
import search from "./modules/search"
import detail from "./modules/detail"
import shopcart from "./modules/shopcart"
import user from "./modules/user"
import order from "./modules/order"
export default new Vuex.Store({
    state:{
        //决定商品搜索界面的排序按钮组
        sortBtns:config.sortBtns
    },
    getters:{},
    mutations:{},
    actions:{},
    modules:{
        home,
        search,
        detail,
        shopcart,
        user,
        order
    }
})